package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.domain.ProductSpec;

import java.util.List;

/**
 * 商品规格service接口
 * @author li
 * @date 2024-09-28
 */
public interface IProductSpecService extends IService<ProductSpec> {

    public List<ProductSpec> selectProductSpecList(ProductSpec productSpec);

    /**
     * 查询商品规格详细
     *
     * @param id 商品规格ID
     * @return 商品规格
     */
    public ProductSpec selectProductSpecById(Long id);

    /**
     * 根据商品分类id查询商品规格
     * @param categoryId
     * @return
     */
    public List<ProductSpec> selectProductSpecListByCategoryId(Long categoryId);
}
